/*************************************
Author: Christopher Pepper 24/3/2010
***************************************/

#include "MailingListSubscriptionCatagoryEnumerations.h"

namespace XF
{
	char* enumMailingListStrings[] = {
		"AUDIO_SUBSYSTEM",
		"PARTICLE_SUBSYSTEM",
		"GRAPHICS_SUBSYSTEM",
		"GUI_SUBSYSTEM",
		"ENITY_MANAGEMENT",
		"INTERESTED_IN_SETTINGS",
		"CONSOLE",
		"PATH_FOLLOWERS",
		"ERROR_HANDLERS",
		"COLLISION_SYSTEM",
	};
	std::string MailingListToString(MailingList::ENUM sub){return enumMailingListStrings[sub];}
	MailingList::ENUM StringToMailingList(std::string message)
	{
		int resultm = NO_MAILING_LIST; 
		for(int i = 0; enumMailingListStrings[i] != "NULL"; ++i)
		{
			if(enumMailingListStrings[i] == message) return (MailingList::ENUM)i;
		}
		return (MailingList::ENUM)resultm;
	}
}
